package com.LinkedList.learnSingleList;

public class Node {
    Object data;//存储是数据
    Node next;//指向下个节点的指针
    public Node() {
        super();
    }
    public Node(Object data) {
        super();
        this.data = data;
    }
    public Node(Object data, Node next) {
        super();
        this.data = data;
        this.next = next;
    }
    //省略setter和getter方法
    public String toString() {
        return "Node [data=" + data + ", next=" + next + "]";
    }
}
